<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }
    /**
     * 医保对照弹出框
     * @param url
     */
    function priceMedical(url){
        layerIndex =layer.open({
            type: 2,
            title:'医保数据对照',
            area: ['60%', '70%'],
            fixed: false, //不固定
            maxmin: true,
            content: url,
            btn: ['确定', '取消'],
            yes:function(index,layero){
                $(layero).find("iframe")[0].contentWindow.saveVsMedical();
            } ,no:function(index){
                layer.close(index);
            }
        });
    }
    /**
     *   关闭弹出框
     */
    function closeLayer(){
        layer.close(layerIndex);
        $("#searchForm").submit();
    }
</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/med/medicalInsurance/index')">医保数据传输</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form id="searchForm" modelAttribute="inpSettleMaster"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/finance/medicalInsurance/index');" method="post" class="form-inline">
                                <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                &nbsp;&nbsp;<label>住院号：</label>
                                <form:input path="patVisit.visitNo" htmlEscape="false" maxlength="50" class="form-control" />
                                &nbsp;&nbsp;<label>是否传输 ：</label>
                                <%--<form:select id="status" path="status" class="form-control" >
                                    <form:option value="" label="全部"/><form:option value="0" label="未传输"/><form:option value="1" label="已传输"/>
                                </form:select>--%>
                                <form:radiobutton path="status" value="0" checked="true"/>未传输
                                <form:radiobutton path="status" value="1"/>已传输
                                &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                            </form:form>
                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>住院号</th>
                            <th>姓名</th>
                            <th>费别</th>
                            <th>身份证号</th>
                            <th>医保号</th>
                            <th>结账序号</th>
                            <th>金额</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="inpSettleMaster" varStatus="index">
                            <tr>
                                <td>${inpSettleMaster.patVisit.visitNo}</td>
                                <td>${inpSettleMaster.patVisitIndex.name}</td>
                                <td>${inpSettleMaster.patVisitIndex.chargeType}</td>
                                <td>${inpSettleMaster.patVisitIndex.idNo}</td>
                                <td>${inpSettleMaster.patVisitIndex.insuranceNo}</td>
                                <td>${inpSettleMaster.acctNo}</td>
                                <td>${inpSettleMaster.costs}</td>
                                <td>
                                    <%--<a href="#" onclick="priceMedical('${ctx}/med/hisVsMedical/form?id=${hisVsMedical.hisVsMedicalId}'+'&type=1')" class="btn btn-success btn-xs">修改</a>
                                    <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该医保数据与his数据对照吗？',function(){delLoad('mainCenterDiv','${ctx}/med/hisVsMedical/delete?id=${hisVsMedical.hisVsMedicalId}','${ctx}/med/hisVsMedical/index')})">删除</a>
                                --%>
                                </td>
                            </tr>
                        </c:forEach>
                    </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>
        </section>
    </div>
</div>

